def fix_job_def(job_def):
    """ 预处理apscheduler 的job_def参数
     1） 将相关字符串入参转数值类型
     """
    int_keys = ("weeks", "days", "hours", "minutes", "seconds")
    for k in int_keys:
        if k in job_def and isinstance(job_def[k], str):
            if job_def.get(k):
                job_def[k] = int(job_def[k])
            else:
                job_def.pop(k)
